const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack: { // 配置webpack
    plugins: [
    ],
  },
  css: { // 添加css配置，全局引入Sass全局变量和Sass全局函数
    loaderOptions: {
      // sass-loader
      scss: {
        additionalData: `
        @import '@/assets/scss/variable.scss';
        @import '@/assets/scss/mixin.scss';
        `
      }
    }
  },
  // 关闭全屏报错覆盖
  devServer: {
    client: {
      overlay: false,
    },
  }
})